<?php
namespace Admin\Controller;

class VideoCommentController extends CommonController {
    public function index(){
        $this->assign('title','视频评论管理');
        $list = M('video_comment');
        $data = $list->select();
        $this->assign('data',$data);
        $this->show();
    }

    public function del(){
        $ad = M('video_comment');
        // var_dump($_POST);
        $id = $_POST['comment_id'];
        $re = $ad->delete($id);
         if($re){
            echo '1';
         }else{
            echo '2';
         }
    }

}
   